package cn.zhoumingxin.Test;

public class TestDistance {
	public static void main(String[] args) {
		double x1 = 8.0;
		double x2 = 7.0;
		double y1 = 3.0;
		double y2 = 8.0;
		
		double A = Math.pow(x1-x2, 2);
		double B = Math.pow(y1-y2, 2);
		
		double distance = Math.sqrt(A+B);
		
		//进行计算，两点之间的欧式距离
		System.out.println(distance);
	}

}
